package com.ruoyi.fs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseRecordMapper;
import com.ruoyi.fs.domain.FsCaseRecord;
import com.ruoyi.fs.service.IFsCaseRecordService;

/**
 * 案件重立记录Service业务层处理
 * 
 * @author hero
 * @date 2024-10-13
 */
@Service
public class FsCaseRecordServiceImpl implements IFsCaseRecordService 
{
    @Autowired
    private FsCaseRecordMapper fsCaseRecordMapper;

    /**
     * 查询案件重立记录
     * 
     * @param id 案件重立记录主键
     * @return 案件重立记录
     */
    @Override
    public FsCaseRecord selectFsCaseRecordById(Long id)
    {
        return fsCaseRecordMapper.selectFsCaseRecordById(id);
    }

    /**
     * 查询案件重立记录列表
     * 
     * @param fsCaseRecord 案件重立记录
     * @return 案件重立记录
     */
    @Override
    public List<FsCaseRecord> selectFsCaseRecordList(FsCaseRecord fsCaseRecord)
    {
        return fsCaseRecordMapper.selectFsCaseRecordList(fsCaseRecord);
    }

    /**
     * 新增案件重立记录
     * 
     * @param fsCaseRecord 案件重立记录
     * @return 结果
     */
    @Override
    public int insertFsCaseRecord(FsCaseRecord fsCaseRecord)
    {
        fsCaseRecord.setCreateTime(DateUtils.getNowDate());
        return fsCaseRecordMapper.insertFsCaseRecord(fsCaseRecord);
    }

    /**
     * 修改案件重立记录
     * 
     * @param fsCaseRecord 案件重立记录
     * @return 结果
     */
    @Override
    public int updateFsCaseRecord(FsCaseRecord fsCaseRecord)
    {
        fsCaseRecord.setUpdateTime(DateUtils.getNowDate());
        return fsCaseRecordMapper.updateFsCaseRecord(fsCaseRecord);
    }

    /**
     * 批量删除案件重立记录
     * 
     * @param ids 需要删除的案件重立记录主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseRecordByIds(Long[] ids)
    {
        return fsCaseRecordMapper.deleteFsCaseRecordByIds(ids);
    }

    /**
     * 删除案件重立记录信息
     * 
     * @param id 案件重立记录主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseRecordById(Long id)
    {
        return fsCaseRecordMapper.deleteFsCaseRecordById(id);
    }
}
